CalHour()

General System Function

Syntax samples

CALHOUR()

Description

The CALHOUR() function corresponds to the hour of the calendar date you defined as part of the warm-up period or simulation begin date under simulation options. Since this function ties directly to the 24-hour clock displayed on the screen during simulation, CALHOUR() will never return a value higher than 23.

Valid In

Any logic.

Please note

CALHOUR() works only when you select calendar date in the simulation options dialog.

Example

The following example implements a change in personnel used to perform an operation. After the simulation runs for 18 hours, the technician becomes available to perform the activity.

IF CALHOUR() > 18 THEN

USE Worker FOR N(10,4)

ELSE USE Technician FOR N(8,2)

See Also

CALDAY(), CALDOM(), CALMIN(), CALMONTH(), and CALYEAR().